<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>订单明细</title>
</head>
<body>
<h1>订单明细</h1>
<a href="myOrders.html">返回我的订单</a>
<hr/>
${sessionScope.user.username}用户，${requestScope.order.no}订单
<table border="1">
    <tr>
        <th>序号</th>
        <th>商品名称</th>
        <th>商品数量</th>
        <th>商品总价</th>
    </tr>
    <c:forEach items="${order.items}" var="item" varStatus="status">
        <tr>
            <td>${status.count}</td>
            <td>${item.product.name}</td>
            <td>${item.num}</td>
            <td>${item.price}</td>
        </tr>
    </c:forEach>
</table>
------------------------------------------------------<br/>
共:${order.items.size()}条&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;总计:${order.price}元
</body>
</html>